﻿/* reset.css */
*{
	outline: none;
	padding: 0;
	margin: 0;
}
li{
	float: left;
	list-style: none;
}
input:focus{
	border: 1px solid #00f;
}
[class$="-btn"],button,[type="button"],[type="submit"]{
	cursor: pointer;
	outline: none;
}
.clear:after{
	content: "";
	display: block;
	clear: both;
}
/* main.css */
#wrap{
	width: 540px;
	margin: 0 auto;
	margin-top: 10px;
	border: 5px solid #bbb;
}
#banner{
	display: block;    /* 在火狐下是div,但是在谷歌里是行内块元素 */
	text-align: center;
	font: 900 26px "微软雅黑";
	height: 40px;
	width: 500px;
	padding: 0 20px;   /* 会在谷歌的padding的区域内轮播,不再火狐的padding区域内轮播 */
	background-color: #888;
}
/*#screen*/
#screen{
	position: relative;
	height: 330px;
	width: 500px;
	border: 15px inset #bbb;
	border-top:17px solid #999;
	border-left: 17px solid #99a;
	border-bottom: 23px solid #cce;
	border-right: 23px solid #ccd;
	background-color: lightcyan;
	overflow: hidden;
}
.page{
	display: none;
	position: absolute;
	top: 0;
	left: 0;
	text-align: center;
	height: 330px;
	width: 500px;
}
.page-show{
	display: block;
}
.page i{
	font-size: 14px;
	position: absolute;
	right: 15px;
	top: 10px;
	color: #00f;
	text-decoration: underline;
}
.page h2{
	position: absolute;
	left: 15px;
	top: 10px;
	color: #039;
	font-weight: 900;
	font-size: 22px;
	font-style: normal;
}
.page h1{
	position: absolute;
	top: 90px;
	width: 100%;
	color: #03c;
	font-weight: 700;
	font-size: 32px;
	letter-spacing: 5px;
	text-shadow: 5px -3px 3px #66f
}
.page label{
	position: absolute;
	top: 150px;
	left: 0;
	width: 100%;
}
.page label input{
	text-align: center;
	font-size: 20px;
	font-weight: 900;
	height: 30px;
	width: 130px;
	line-height: 30px;
	padding: 0 10px;
	margin-top: 5px;
	border: 1px solid #ccc;
	border-radius: 4px;
}
#card-inp,#another-card-inp{
	width: 300px;
}
.page label input:focus{
	border: 1px solid #00f;
}
.page b{
	color: #333;
	position: absolute;
	bottom: 10px;
	left: 0;
	font-weight: 400;
	width: 100%;
	font-size: 13px;
}
.page p{
	position: absolute;
	top: 35px;
	left: 0;
	text-indent: -3em;
	width: 100%;
}
/*消费记录清单 */
.page #headline{
	color: #333;
	position: absolute;
	top: 46px;
	left: 25px;
	text-align: left;
	width: 360px;
	height: 26px;
	padding: 0 5px;
	line-height: 26px;
	background-color: lightskyblue;
}
.page #headline span,.page #headline strong{
	font-size: 12px;
}
.page #headline span:first-child{
	margin-left: 100px;
}
.page #headline strong{
	padding: 0 3px;
}
.page #payLists{
	position: absolute;
	top: 93px;
	left: 25px;
	width: 370px;
	height: 180px;
	background-color: lightblue;
	overflow: hidden;
}
.payListHead{
	position: relative;
	left: 25px;
	top: 73px;
	font-weight: 900;
	z-index: 100;
	width: 370px;
	background-color: lightblue;
}
.payListHead li:last-child{
	text-align: center;
}
.payList,.payListHead{
	position: relative;
}
.payList li,.payListHead li{
	color: #333;
	font-size: 12px;
	height: 20px;
	line-height: 20px;
	padding: 0 6px;
	box-sizing: border-box;
	border-right: 1px solid #fff;
	border-bottom: 1px solid #fff;
}
.payOrder{
	width: 38px;
	padding: 0 !important;
}
.payTime{
	width: 170px;
}
.payTime span:first-child{
	float: left;
}
.payTime span:last-child{
	float: right;
}
.payType{
	width: 50px;
}
.paySum{
	text-align: right;
	width: 112px;
	border-right: none;
}
#payHisFoot{
	position: absolute;
	top: 273px;
	left: 25px;
	height: 22px;
	line-height: 22px;
	width: 360px;
	font-size: 12px;
	padding: 0 5px;
	background-color: skyblue;
}
#payHisFoot button{
	color: #fff;
	font-size: 12px;
	position: absolute;
	padding: 0 3px;
	border-radius: 4px;
	background-color: cornflowerblue;
	border: none;
}
#payHisFoot button:hover{
	color: #ddd;
	background-color: #33f;
}
#payHisFoot #foward-btn{
	left: 20px;
	top: 3px;
}
#payHisFoot #behind-btn{
	right: 20px;
	top: 3px;
}
#payHisFoot strong{
	margin: 0 3px;
}


.page-btn{
	color: #ddd;
	position: absolute;
	height: 32px;
	font-weight: 900;
	font-size: 16px;
	padding: 0 10px;
	border-top: 3px solid #eee;
	border-left: 3px solid #eee;
	border-bottom: 3px solid #aaa;
	border-right: 3px solid #aaa;
	background-color: #00f;
}
.page-btn:active{
	color: #fff;
	border-top: 3px solid #aaa;
	border-left: 3px solid #aaa;
	border-bottom: 3px solid #eee;
	border-right: 3px solid #eee;
	background-color: #00e;
}
.money-btn{
	left: -3px;
	border-radius: 0 10px 10px 0;
}
#put-money-btn{
	top: 70px;
}
#out-money-btn{
	top: 110px;
}
#move-money-btn{
	top: 150px;
}
#query-money-btn{
	top: 190px;
}
#pay-history-btn{
	top: 230px;
}
.back-card-btn{
	right: -3px;
	top: 220px;
	border-radius: 10px 0 0 10px;
}
.back-home-btn{
	right: -3px;
	top: 260px;
	border-radius: 10px 0 0 10px;
}
/*#operate*/
#operate{
	position: relative;
	width: 540px;
	height: 210px;
	background-color: #999;
}
#card-in{
	position: absolute;
	left: 25px;
	top: 7px;
	height: 40px;
	width: 200px;
	border-radius: 10px;
	border: 5px outset #ccc;
	background-color: #bbb;
}
#card-in #card-text{
	color: #ccc;
	font-weight: 900;
	vertical-align: top;
	text-align: center;
	font-size: 13px;
	height: 20px;
	line-height: 20px;
	animation: textColorChange 10s linear infinite;
}
@-moz-keyframes textColorChange{
	0%{color: #fff;}
	50%{color: #000;}
	60%{color: orange;}
	80%{color: #0f0;}
	90%{color: #0c3;}
	100%{color: #0c3;}
}
@-ms-keyframes textColorChange{
	0%{color: #fff;}
	50%{color: #000;}
	60%{color: orange;}
	80%{color: #0f0;}
	90%{color: #0c3;}
	100%{color: #0c3;}
}
@-webkit-keyframes textColorChange{
	0%{color: #fff;}
	50%{color: #000;}
	60%{color: orange;}
	80%{color: #0f0;}
	90%{color: #0c3;}
	100%{color: #0c3;}
}
@keyframes textColorChange{
	0%{color: #fff;}
	50%{color: #000;}
	60%{color: orange;}
	80%{color: #0f0;}
	90%{color: #0c3;}
	100%{color: #0c3;}
}
#card-in #card-slot{
	margin-left: 15px;
	height: 8px;
	width: 160px;
	border: 5px inset #ccc;
	border-radius: 10px;
	background-color: yellow;
}
#card-in #card-slot #card-line{
	display: none;
	height: 4px;
	width: 150px;
	background-color: #aaa;
	margin-top: 2px;
	margin-left: 5px;
	border-radius: 2px;
}
#money-out{
	position: absolute;
	top: 65px;
	left: 10px;
	height: 140px;
	width: 240px;
	border: 1px solid #bbb;
	box-sizing: border-box;
	background-color: #ccc;
	transform-style: preserve-3d;
	perspective: 800px;
}
#money-line{
	height: 4px;
	width: 250px;
	margin-left: -6px;
	margin-top: -6px;
	background-color: #888;
	border: 1px outset #999;
	border-radius: 2px;
}
#money-ward{
	cursor: pointer;
	position: absolute;
	top: 0;
	left: 0;
	width: 240px;
	height: 140px;
	text-align: center;
	color: #666;
	font: 700 42px "宋体" ;
	line-height: 130px;
	z-index: 99;
	background-color: #888;
	opacity: .9;
}
.openWard{
	transform:rotateX(75deg);
	transform-origin: top;
}
#money-hole{
	position: absolute;
	top: 0;
    left: 0;
	width: 240px;
	height: 140px;
	box-sizing: border-box;
	border-top: 12px solid #444;
	border-right: 17px solid #777;
	border-bottom: 18px solid #555;
	border-left: 15px solid #222;
	transform-style: preserve-3d;
	background-color: #eea;
}
#money-box{
	position: absolute;
	left: 5px;
	bottom: 5px;
	width: 198px;
}
#money-box .RMB{
	cursor: pointer;
	position: absolute;
	width: 196px;
	transform:rotateX(70deg);
	transform-origin: top;
}
#keyboard{
	position: absolute;
	right: 5px;
	top: 7px;
	height: 130px;
	width: 240px;
	padding: 5px;
	background-color: #ddd;
	border: 5px inset #ccc;
	border-radius: 10px;
}
.num-btn{
	vertical-align: top;
	color: #fff;
	font-weight: 900;
	font-size: 20px;
	height: 38px;
	width: 50px;
	margin: 3px;
	border-radius: 8px;
	border-top: 5px outset #bbb;
	border-left: 5px outset #bbb;
	border-right: 5px outset #aaa;
	border-bottom: 5px outset #aaa;
	background-color: #aaa;
	outline: none;
}
#ok,#del{
	font-size: 16px;
}
.num-btn:active{
	color: orange;
	border: 5px inset #bbb;
	background-color: #ccc;
}
#operate-produce{
	color: #666;
	font-size: 12px;
	line-height: 18px;
	position: absolute;
	right: 13px;
	bottom: 5px;
	width: 220px;
	height: 36px;
	padding: 2px 10px;
	background-color: #ddd;
	border: 1px solid #ccc;
	border-radius: 6px;
}
/*js生成信息提示窗口*/
#window-cover{
	position: absolute;
	height: 100%;
	width: 100%;
	background-color: rgba(0,0,0,.5);
	z-index: 1000;
}
#window-box{
	position: absolute;
	left: 50%;
	top: 50%;
	height: 150px;
	width: 240px;
	margin-left: -120px;
	margin-top: -75px;
	border: 1px solid #CCC;
	background-color: #9ff;
}
#window-head{
	color: #fff;
	text-align: center;
	height: 28px;
	line-height: 28px;
	font-size: 700;
	background-color: #00f;
}
#window-body{
	height: 88px;
	width: 226px;
	padding: 4px 7px;
	font-size: 14px;
	line-height: 22px;
}
#text-box{
	font-size: 14px;
	line-height: 22px;
}
#window-foot{
	text-align: center;
	height: 26px;
	line-height: 26px;
	background-color: deepskyblue;
}
#window-foot button{
	color: #fff;
	font-size: 14px;
	width: 70px;
	height: 24px;
	margin: 0 5px;
	border: 2px outset #ccc;
	background-color: #00f;
}
#window-foot button:active{
	border: 2px inset #ccc;
}
/* js生成信用卡片 */
#cards-box{
	position: absolute;
	top: 0;
	left: 50%;
	margin-top: 10px;
	margin-left: -650px;
	height: 630px;
	width: 330px;
	box-sizing: border-box;
	border: 10px inset #ccc;
	background: #eee;
	overflow: auto;
}
.cards{
	cursor: move;
	position: absolute;
	left: 5px;
	height: 150px;
	width: 280px;
	border-radius: 15px;
	background-color: #ff5;
	border: 1px solid #eee;
	box-shadow: 5px 5px 5px #ccc;
	z-index: 999;
}
.cards:last-child{
	margin-bottom: 10px;
}
.cards i{
	font-weight: 900;
	font-style: normal;
	font-size: 20px;
	display: block;
	position: absolute;
	left: 15px;
	top: 5px;
	padding: 3px 12px;
	border-radius: 10px;
	border: 1px solid #ccc;
	background-color: #FFA500;
}
.cards img{
	position: absolute;
	top: 8px;
	right: 15px;
	display: block;
	height: 22px;
}
.cards b{
	font-size: 16px;
	text-align: center;
	position: absolute;
	top: 66px;
	left: 25px;
	display: block;
	height: 24px;
	line-height: 24px;
	width: 230px;
	background-color: #fff;
}
.cards em{
	font-style: normal;
	font-size: 10px;
	display: block;
	position: absolute;
	bottom: 35px;
	left: 10px;
}
.cards span,.cards strong{
	font-size: 12px;
	display: block;
	position: absolute;
	bottom: 15px;
	font-size: 12px;
}
.cards span{
	right: 75px;
}
.cards strong{
	font-weight: 900;
	height: 16px;
	text-align: center;
	width: 60px;
	right: 15px;
	border: 1px solid #666;
	background-color: #eee;
}
.take-space{
	position: absolute;
	height: 1px;
	width: 100%;
	background-color: transparent;
}
#use-produce{
	position: absolute;
	left: 50%;
	top: 10px;
	width: 330px;
	height: 630px;
	margin-left: 320px;
	box-sizing: border-box;
	border: 1px solid #999;
}
#use-produce h3{
	padding: 5px 0;
	text-align: center;
}
#use-produce p{
	font-size: 14px;
	text-indent: 2em;
}